﻿
function core (baseUrl) {

    this.baseUrl = baseUrl;

    this.init = function () {

        return this;
    };

    this.ajax = {

        get: function (url) {

        },

        post: function (url, data) {

            var ajax = $.post(baseUrl + url, data, function (result) {

                debug = result;
                eval(result);
            });

            return ajax;
        }
    };

    this.loadjs = function (name) {

        return this.ajax.post('Loader/js/' + name, {});
    };
}

var debug;